{{ define "user/userList.html"}}
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户数据展示</title>
    <style>
        table {
            width: 100%;
            border-collapse: collapse;
        }

        th,
        td {
            border: 1px solid #ddd;
            padding: 8px;
            text-align: left;
        }

        th {
            background-color: #f2f2f2;
        }
    </style>
</head>

<body>
<h1>用户数据展示</h1>
<table>
    <thead>
    <tr>
        <th>用户姓名</th>
        <th>账号</th>
        <th>用户手机号</th>
        <th>用户头像</th>
        <th>用户状态</th>

    </tr>
    </thead>
    <tbody>
    {{range .data}}
    <tr>
        <td>{{.UserName}}</td>
        <td>{{.User}}</td>
        <td>{{.Phone}}</td>
        <td><img style="width: 70px;height: 70px" src="{{.UserImg}}" alt="用户头像"></td>
        <td>{{.UserState}}</td>
    </tr>
    {{end}}
    </tbody>
</table>
</body>

</html>
{{ end }}